package com.fdd.spring.aop.homework.xml;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;


public class MyAspect {


    public void showBeginLog(JoinPoint joinPoint){
        System.out.println("===开始执行===" + joinPoint.getSignature().getName() + "方法"+ "，开始执行时间是：" +System.currentTimeMillis());

    }


    public void showEndLog(JoinPoint joinPoint){
        System.out.println("===结束执行===" + joinPoint.getSignature().getName() + "方法"+ "，结束执行时间是：" +System.currentTimeMillis());
    }
}
